package top.lunarye.modules.staff.mapper;

import org.apache.ibatis.annotations.*;
import org.apache.ibatis.type.JdbcType;
import org.springframework.stereotype.Repository;
import top.lunarye.modules.staff.entity.Staff;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import top.lunarye.modules.staff.entity.dto.StaffSelectDTO;

import java.util.List;

/**
 * <p>
 * 人员表 Mapper 接口
 * </p>
 *
 * @author lunar
 * @since 2021-07-13
 */
@Mapper
@Repository
public interface StaffMapper extends BaseMapper<Staff> {
    @Select("select id, user_name, name, staff_number, role, is_disable, update_time, create_time from t_staff")
    List<StaffSelectDTO> selectStaffList();

    int insertStaffList(@Param("staffList") List<Staff> staffList);
}
